type ApiCallInput = { path: string; type: 'query' | 'mutation'; data?: unknown; token?: string | null; }; export type GitHubFlowCallApi = (input: ApiCallInput) => Promise; export type GitHubSyncFlowResult = { status: 'not_connected'; } | { status: 'draft_missing'; } | { status: 'completed' | 'skipped'; jobId: string; remoteSha: string | null; versionId: string | null; }; type PendingGitHubSyncJobStatus = 'pending' | 'running'; export declare class GitHubSyncTimeoutError extends Error { readonly jobId: string; readonly jobStatus: PendingGitHubSyncJobStatus; constructor(jobId: string, jobStatus: PendingGitHubSyncJobStatus); } export declare const syncGitHubDraftIfConnected: (input: { callApi: GitHubFlowCallApi; token: string; workspaceId: string; funnelId: string; pollIntervalMs?: number; timeoutMs?: number; sleep?: (ms: number) => Promise; }) => Promise; export {};