import { assertNever } from '@kbn/std' ; import { RewritePolicy } from './policy' ; import { MetaRewritePolicy , MetaRewritePolicyConfig , metaRewritePolicyConfigSchema } from './meta' ; export type { RewritePolicy } ; /**
 * Available rewrite policies which specify what part of a  LogRecord * can be modified.
  export type RewritePolicyConfig = MetaRewritePolicyConfig ; export const rewritePolicyConfigSchema = metaRewritePolicyConfigSchema ; export const createRewritePolicy = ( config ) : RewritePolicy => { switch ( config . type ) { case 'meta' : return new MetaRewritePolicy ( config ) ; default : return assertNever ( config . type ) ; } } ;