import { SsgoiConfig, SsgoiContext } from '../types/index.ts'; import { HostAnimation } from '../animation/host-animation'; /** * Page-level transition context. * * Pure promise plumbing: the framework adapter calls `in(element)` on mount * and `out(element)` on unmount; the dispatcher pairs them by path via * NavigationDetector, then `.then`-chains the prepare result, the cloned * `from` element, and the `to` element. `animation()` runs once the chain * resolves — never via blocking `await` — so a follow-up navigation can * start its own pair while a prior one is still building. */ export interface CreateSsgoiTransitionContextOptions { /** * Long-lived host that owns playback state across consecutive transitions. * Pass one in to drive play/pause/rate from the outside (e.g. dev tools). * Omit it and the context spins up its own internal host. */ host?: HostAnimation; } export declare function createSggoiTransitionContext(options: SsgoiConfig, contextOptions?: CreateSsgoiTransitionContextOptions): SsgoiContext; //# sourceMappingURL=create-ssgoi-transition-context.d.ts.map