import type { AnyNonPromise } from '@xylabs/promise'; import type { AsTypeFunction } from './AsTypeFunction.ts'; import type { TypeCheck } from './types.ts'; /** * Factory for creating type-narrowing 'as' functions that cast a value to T or return undefined. * Supports optional assertion messages and configuration for required/optional behavior. */ export declare const AsTypeFactory: { create: (typeCheck: TypeCheck) => AsTypeFunction; createOptional: (typeCheck: TypeCheck) => (value: AnyNonPromise) => T | undefined; }; //# sourceMappingURL=AsTypeFactory.d.ts.map