import { SsgoiPathTransition } from '../../types/index.ts'; import { DirectionalTransitionPaths } from '../utils'; /** * Public `type` values supported by `sheet`. * * - `"static"` (default) — the background sits untouched while the sheet rises. * - `"scale"` — the background scales down slightly behind the rising sheet. * This is the new name for the legacy `"background-scale"` value; the * underlying behavior is unchanged. */ export type SheetType = "static" | "scale"; /** * Legacy public `type` value, kept for source compatibility only. * * @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`. * Migrate `type: "background-scale"` to `type: "scale"` — same behavior, new name. * Example: `sheet({ enter: "/list", exit: "/sheet", type: "scale" })`. * Kept here only for backward compatibility — will be removed in a future major. */ export type SheetTypeDeprecated = "background-scale"; export type SheetConfig = DirectionalTransitionPaths & ({ type?: "static"; variant?: "default"; options?: Record; } | { type: "scale"; variant?: "default"; options?: Record; } | { /** * @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`. * Migrate `type: "background-scale"` to `type: "scale"` — same behavior, new name. * Example: `sheet({ enter: "/list", exit: "/sheet", type: "scale" })`. * Kept here only for backward compatibility — will be removed in a future major. */ type: "background-scale"; variant?: "default"; options?: Record; }); export declare function sheet(config: SheetConfig): SsgoiPathTransition[]; //# sourceMappingURL=index.d.ts.map