export type TurboStreamAction = 'append' | 'prepend' | 'replace' | 'remove' | 'update'; export interface PartialReloadOptions { /** When true, use Turbo Stream content type (`text/vnd.turbo-stream.html`). */ turboStream?: boolean; /** Turbo-Frame id echoed back to the client on frame requests. */ turboFrame?: string; /** HTMX event(s) to fire after the swap (`HX-Trigger`). */ htmxTrigger?: string | Record; /** URL to push into browser history (`HX-Push-Url`). */ htmxPushUrl?: string; /** Selector to retarget the swap (`HX-Retarget`). */ htmxRetarget?: string; /** Swap strategy override (`HX-Reswap`). */ htmxReswap?: string; /** Additional response headers. */ headers?: HeadersInit; } export declare function isHtmxRequest(request: Request): boolean; export declare function isTurboFrameRequest(request: Request): boolean; export declare function buildTurboStream(action: TurboStreamAction, target: string, content?: string): string; export declare function applyPartialReloadHeaders(headers: Headers, options?: PartialReloadOptions): void; //# sourceMappingURL=partial-reload.d.ts.map