import type { FieldHook } from '../../config/types.js'; import type { SlugFieldArgs } from './index.js'; type HookArgs = { slugFieldName: NonNullable; } & Pick & Required>; /** * This is a `BeforeChange` field hook used to auto-generate the `slug` field. * See `slugField` for more details. * * The hook lives on the `generateSlug` checkbox, so it runs concurrently with the sibling `slug` * field's validation. A synchronous `slugify` result must be assigned without awaiting, otherwise * the hook yields and a required `slug` is validated before it has been generated. */ export declare const generateSlug: ({ slugFieldName, slugify: customSlugify, useAsSlug }: HookArgs) => FieldHook; export {}; //# sourceMappingURL=generateSlug.d.ts.map