import type { Document, GetDocumentTypeMapGen, GetDocumentTypeNamesGen } from '@contentlayer/core'; type TypeNameOneOrMany = GetDocumentTypeNamesGen | GetDocumentTypeNamesGen[]; type TypeForTypeNameOneOrMany = N extends GetDocumentTypeNamesGen ? GetDocumentTypeMapGen[N] : N extends GetDocumentTypeNamesGen[] ? GetDocumentTypeMapGen[N[number]] : never; declare function is(typeName: N, _: any): _ is TypeForTypeNameOneOrMany; declare function is(typeName: N): (_: any) => _ is TypeForTypeNameOneOrMany; export declare const isType: typeof is; export declare const guards: { is: typeof is; hasField: typeof hasField; }; type AllPropertyNames = keyof UnionToIntersection; declare function hasField>(_: T, property: P): _ is T & Record; type UnionToIntersection = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never; export {}; //# sourceMappingURL=guards.d.ts.map