export interface PrwatchTarget { readonly pullRequestNumber: number; readonly repo: string; } export interface PrwatchRegistration extends PrwatchTarget { readonly callId: string; } interface PrwatchRecord { readonly callId: string; readonly cancelled: boolean; } export interface PrwatchRegistryState { readonly watches: Readonly>; } export declare function prwatchKey(input: PrwatchTarget): string; export declare function emptyPrwatchRegistry(): PrwatchRegistryState; export declare function registerPrwatchInState(state: PrwatchRegistryState, input: PrwatchRegistration): PrwatchRegistryState; export declare function isPrwatchCancelledInState(state: PrwatchRegistryState, input: PrwatchRegistration): boolean; export declare function cancelPrwatchInState(state: PrwatchRegistryState, input: PrwatchTarget): { readonly deleted: boolean; readonly state: PrwatchRegistryState; }; export declare function completePrwatchInState(state: PrwatchRegistryState, input: PrwatchRegistration): PrwatchRegistryState; export declare function registerActivePrwatch(input: PrwatchRegistration): Promise; export declare function prwatchWasCancelled(input: PrwatchRegistration): Promise; export declare function finishPrwatch(input: PrwatchRegistration): Promise; export declare function deletePrwatch(input: PrwatchTarget): Promise; export {};