import { type Doc, type DocStatus, type DocType, type InboxAttachment, type InboxMessage, type Task } from "./schemas.js"; import { type InboxAttachmentFile, type InboxAttachmentInput } from "./inbox-attachments.js"; import { type MarkdownRecord } from "./markdown.js"; import { type GitDeliveryState } from "./git-delivery.js"; export type InboxRecord = MarkdownRecord; export type TaskRecord = MarkdownRecord; export type DocRecord = MarkdownRecord; export interface MutationResult { record: TRecord; path: string; commitSha: string | null; created?: boolean; warnings?: string[]; } export interface InboxSubmitResult extends MutationResult { gitDelivery: GitDeliveryState; } export interface InboxSubmitInput { id?: string; body: string; authorName: string; authorEmail: string; attachments?: InboxAttachmentInput[]; } export interface TaskCreateInput { title: string; body?: string; status?: string; priority?: string | null; assignee?: string | null; } export interface RecordUpdateInput { title?: string; body?: string; } export interface InboxLinkInput { taskIds?: string[]; docIds?: string[]; } export interface TaskLinkInput { inboxIds?: string[]; docIds?: string[]; } export interface LinkMutationResult { inbox: InboxRecord[]; tasks: TaskRecord[]; docs: DocRecord[]; changed: boolean; commitSha: string | null; } export interface DocCreateInput { title: string; body?: string; type?: DocType; status?: DocStatus; } export declare function nowIso(): string; export declare function createInboxId(): string; export declare function listInbox(cwd?: string): Promise; export declare function getInboxMessage(id: string, cwd?: string): Promise; export declare function summarizeInboxMessage(body: string, attachments: InboxAttachment[], maxLength?: number): string; export declare function getInboxAttachment(id: string, storedName: string, cwd?: string): Promise; export declare function submitInboxMessage(input: InboxSubmitInput, cwd?: string): Promise; export declare function claimInboxMessage(id: string, claimedBy: string, cwd?: string): Promise>; export declare function closeInboxMessage(id: string, cwd?: string): Promise>; export declare function listTasks(cwd?: string): Promise; export declare function getTask(id: string, cwd?: string): Promise; export declare function createTask(input: TaskCreateInput, cwd?: string): Promise>; export declare function moveTask(id: string, status: string, cwd?: string): Promise>; export declare function prioritizeTask(id: string, priorityInput: string, cwd?: string): Promise>; export declare function updateTask(id: string, input: RecordUpdateInput, cwd?: string): Promise>; export declare function listDocs(cwd?: string): Promise; export declare function getDoc(id: string, cwd?: string): Promise; export declare function createDoc(input: DocCreateInput, cwd?: string): Promise>; export declare function updateDoc(id: string, input: RecordUpdateInput, cwd?: string): Promise>; export declare function linkInboxMessage(id: string, input: InboxLinkInput, cwd?: string): Promise; export declare function linkTask(id: string, input: TaskLinkInput, cwd?: string): Promise; //# sourceMappingURL=records.d.ts.map