import type { DocumentLiveState, UnpublishDocumentOptions } from '@pantheon-systems/css-client'; import type { P1PuckContextValue } from '../core/types.js'; export interface UseUnpublishPageParams { ccr: P1PuckContextValue; documentPath: string; liveState?: DocumentLiveState; refreshVersions: () => Promise; getToken: () => Promise; toastSuccess: (message: string) => void; } export interface UseUnpublishPageReturn { /** Unpublishes the open page, and its live child pages when asked, sending visitors to `redirectTo` when given. */ onUnpublish: (redirectTo?: string, options?: UnpublishDocumentOptions) => Promise; /** Where visitors to the page are sent while it is unpublished. */ unpublishRedirectTo?: string; } /** Unpublishing the open page, and the redirect its visitors are sent to while it is down. */ export declare function useUnpublishPage({ ccr, documentPath, liveState, refreshVersions, getToken, toastSuccess, }: UseUnpublishPageParams): UseUnpublishPageReturn;