export interface FileEntry { path: string; size: number; mtime: string; } export interface BuildOk { ok: true; bundleBytes: number; bundleHash: string; durationMs: number; } export interface BuildErr { ok: false; errors: { file?: string; line?: number; column?: number; text: string; }[]; durationMs?: number; } export type BuildResult = BuildOk | BuildErr; interface ApiOptions { deployId: string; token: string; isClaim: boolean; } export declare function fetchFiles(opts: ApiOptions): Promise<{ files: FileEntry[]; } | { error: string; status: number; }>; export declare function fetchFile(opts: ApiOptions, path: string): Promise<{ text: string; } | { error: string; }>; export declare function putFile(opts: ApiOptions, path: string, text: string): Promise<{ ok: true; } | { error: string; }>; export declare function deleteFile(opts: ApiOptions, path: string): Promise<{ ok: true; } | { error: string; }>; export declare function moveFile(opts: ApiOptions, from: string, to: string): Promise<{ ok: true; } | { error: string; }>; export declare function fetchEnv(opts: ApiOptions): Promise<{ entries: Record; } | { error: string; }>; export declare function putEnv(opts: ApiOptions, patch: Record): Promise<{ entries: Record; } | { error: string; }>; export declare function deleteEnvKey(opts: ApiOptions, key: string): Promise<{ entries: Record; } | { error: string; }>; export interface LogEntry { timestamp: string; level: "info" | "error"; message: string; data?: unknown; } export declare function streamLogs(deployUrl: string, opts: ApiOptions, onEntry: (entry: LogEntry) => void, onError: (err: unknown) => void): () => void; export declare function build(opts: ApiOptions): Promise; export declare function languageForPath(p: string): "typescript" | "json" | "markdown" | "plain"; export {}; //# sourceMappingURL=api.d.ts.map