export declare const CH: { readonly notesList: "notes:list"; readonly notesRead: "notes:read"; readonly notesWrite: "notes:write"; readonly notesRemove: "notes:remove"; readonly notesReset: "notes:reset"; readonly shellOpen: "shell:open"; readonly dialogPick: "dialog:pick"; }; export type NoteMeta = { id: string; sizeBytes: number; updatedAt: number; }; export type NoteRead = { id: string; content: string; }; export type PickedFile = { path: string; name: string; }; export type PublicError = { code: string; message: string; detail?: string; requestId: string; }; export type Envelope = { ok: true; value: T; requestId: string; } | { ok: false; error: PublicError; }; export declare class ServiceError extends Error { readonly code: string; readonly detail?: string; constructor(code: string, message: string, detail?: string); } export declare function toPublicError(error: unknown, requestId: string): PublicError; export declare function parseNoteIdReq(value: unknown): { id: string; }; export declare function parseWriteReq(value: unknown): { id: string; content: string; }; export declare function parseShellOpenReq(value: unknown): { url: string; }; //# sourceMappingURL=ipc.d.ts.map