import type { RuntimeBootActionContext, RuntimeRewrite } from "../types.js"; import type { MaybePromise, StoreRecord } from "../../types.js"; type BootRecordTransform = (record: StoreRecord, context: RuntimeBootActionContext) => MaybePromise; interface BootStringFieldOptions { fallbackFrom?: string | readonly string[]; fallback?: string; default?: string; prefix?: string; } interface BootNumberFieldOptions { fallback?: number; default?: number; } interface BootBooleanFieldOptions { fallback?: boolean; default?: boolean; } interface BootObjectFieldOptions { defaults?: Record; } interface BootArrayFieldOptions { default?: readonly unknown[]; } interface BootSlugFieldOptions { fallback?: string; prefix?: string; separator?: string; } declare function createBootRewriter(records: Record): RuntimeRewrite; declare function bootRecord(transforms: readonly BootRecordTransform[]): RuntimeRewrite; declare function stringField(field: string, options?: BootStringFieldOptions): BootRecordTransform; declare function numberField(field: string, options?: BootNumberFieldOptions): BootRecordTransform; declare function booleanField(field: string, options?: BootBooleanFieldOptions): BootRecordTransform; declare function objectField(field: string, options?: BootObjectFieldOptions): BootRecordTransform; declare function arrayField(field: string, options?: BootArrayFieldOptions): BootRecordTransform; declare function uniqueStringArrayField(field: string, aliases?: readonly string[]): BootRecordTransform; declare function stringAliases(target: string, aliases: readonly string[]): BootRecordTransform; declare function copyAlias(target: string, aliases: readonly string[]): BootRecordTransform; declare function defaultValue(field: string, value: unknown): BootRecordTransform; declare function defaultStatus(status: string): BootRecordTransform; declare function nestedDefaults(path: string, defaults: Record): BootRecordTransform; declare function booleanPolicyDefaults(path: string, defaults: Record): BootRecordTransform; declare function slugField(target: string, sourceFields: readonly string[], options?: BootSlugFieldOptions): BootRecordTransform; declare const customTransform: (transform: BootRecordTransform) => BootRecordTransform; export { arrayField, booleanField, booleanPolicyDefaults, bootRecord, copyAlias, createBootRewriter, customTransform, defaultStatus, defaultValue, nestedDefaults, numberField, objectField, slugField, stringAliases, stringField, uniqueStringArrayField, }; export type { BootArrayFieldOptions, BootBooleanFieldOptions, BootNumberFieldOptions, BootObjectFieldOptions, BootRecordTransform, BootSlugFieldOptions, BootStringFieldOptions, }; //# sourceMappingURL=rewriter.d.ts.map