import { SsgoiPathTransition } from '../../types/index.ts'; import { DirectionalTransitionPaths } from '../utils'; /** * Public `type` values supported by `drill`. * * - `"parallax"` (default) — layered enter/exit with depth parallax. * - `"slide"` — flat cross-faded slide. This is the new name for the legacy * `"crossfade"` value; the underlying behavior is unchanged. */ export type DrillType = "parallax" | "slide"; /** * Legacy public `type` value, kept for source compatibility only. * * @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`. * Migrate `type: "crossfade"` to `type: "slide"` — same behavior, new name. * Example: `drill({ enter: "/list", exit: "/detail", type: "slide" })`. * Kept here only for backward compatibility — will be removed in a future major. */ export type DrillTypeDeprecated = "crossfade"; export type DrillConfig = DirectionalTransitionPaths & ({ type?: "parallax"; variant?: "default"; options?: Record; } | { type: "slide"; variant?: "default"; options?: Record; } | { /** * @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`. * Migrate `type: "crossfade"` to `type: "slide"` — same behavior, new name. * Example: `drill({ enter: "/list", exit: "/detail", type: "slide" })`. * Kept here only for backward compatibility — will be removed in a future major. */ type: "crossfade"; variant?: "default"; options?: Record; }); export declare function drill(config: DrillConfig): SsgoiPathTransition[]; //# sourceMappingURL=index.d.ts.map