export type SourcePublicationRecoveryAction = 'retry-preparation' | 'reconcile-only'; export interface SourcePublicationRecovery { publicationId: string; state: 'preparation-failed' | 'proposal-unknown' | 'publication-unknown'; action: SourcePublicationRecoveryAction | 'none'; branch?: string; } export declare function sourcePublicationRecovery(error: unknown): SourcePublicationRecovery | undefined; export declare function publicationFailure(error: unknown, publication: SourcePublicationRecovery): Error & { publication: SourcePublicationRecovery }; export declare function assertPublicationRecovery(value: unknown): asserts value is SourcePublicationRecoveryAction | undefined;