import { $Fetch } from 'ofetch'; import { PeopleActionName } from '../../../common/constants/people.constant'; import { PeopleActionOpts } from '../shared.types'; import { InvokeDeps } from '../_invoke'; import { PeopleArchiveDetail, PeopleArchiveListResponse, PeopleArchiveQuery, PeopleArchiveRestoreResponse, PeopleDefinitionForkParams, PeopleHistoryTypeName, PeopleHistoryVersionsQuery, PeopleHistoryVersionsResponse, PeopleMigrateParams, PeopleSweepParams, PeopleSweepReport } from './history.type'; import { ActionResponse } from '../../content/content.type'; /** Action-name map per definition CT — process carries NO "_type" suffix. */ export declare const PEOPLE_FORK_ACTION: Record; export declare const PEOPLE_MIGRATE_ACTION: Record; export interface IPeopleHistoryServiceOptions { /** The CMS `$Fetch` instance (one of `sdk.apis`). */ api: $Fetch; /** Shared row-action deps (endpoint builder) — reused from the facade. */ invokeDeps: InvokeDeps; } /** Versions, fork-draft, non-ended migration, archive browser, sweep/restore. */ export interface IPeopleHistoryService { /** `GET /people/history/versions` — identity-keyed timelines; 404 → empty. */ versions(query: PeopleHistoryVersionsQuery): Promise; /** `fork_draft_*` row action — fresh draft of a terminal version. */ forkDraft(sourceUuid: string, typeName: PeopleHistoryTypeName, params?: PeopleDefinitionForkParams, opts?: PeopleActionOpts): Promise; /** `migrate_not_ended_*` row action — `params.preview` toggles the report. */ migrate(publishedUuid: string, typeName: PeopleHistoryTypeName, params?: PeopleMigrateParams, opts?: PeopleActionOpts): Promise; /** `GET /people/history/archive` — paged cold-storage browser. */ archive(query?: PeopleArchiveQuery): Promise; /** `GET /content/archive/{archive_uuid}` — one row + frozen payload. */ archiveDetail(archiveUuid: string): Promise; /** `POST /content/archive/sweep` — dry-run first; 409 when blocked. */ sweep(params: PeopleSweepParams): Promise; /** `POST /content/archive/{archive_uuid}/restore` — reason recorded. */ restore(archiveUuid: string, reason: string): Promise; } export declare function createPeopleHistoryService(opts: IPeopleHistoryServiceOptions): IPeopleHistoryService; //# sourceMappingURL=index.d.ts.map