import type { Schema } from '../base.ts'; import { SCHEMA_KIND } from '../base.ts'; /** * Schema that coerces values to booleans using Boolean(value). * Uses JavaScript truthy/falsy rules. * * @example * ```typescript * const schema = s.coerce.boolean(); * schema.parse(1); // true * schema.parse(0); // false * schema.parse(''); // false * schema.parse('hello'); // true * ``` */ export declare class CoerceBooleanSchema implements Schema { readonly [SCHEMA_KIND] = "CoerceBooleanSchema"; description?: string; readonly '~standard': { version: 1; vendor: string; validate: (value: unknown) => import("@agentuity/core").StandardSchemaV1.SuccessResult; types: { input: unknown; output: boolean; }; }; describe(description: string): this; optional(): import("../index.ts").OptionalSchema; nullable(): import("../index.ts").NullableSchema; parse: (this: Schema, value: unknown) => boolean; safeParse: (this: Schema, value: unknown) => import("../base.ts").SafeParseResult; } /** * Create a schema that coerces values to booleans. * Useful for parsing checkboxes or boolean flags from strings. */ export declare function coerceBoolean(): CoerceBooleanSchema; //# sourceMappingURL=boolean.d.ts.map