export type AgentNativeDataMode = "database" | "local-files"; export interface AgentNativeManifestRoot { name?: string; path: string; kind?: string; profile?: string; extensions?: string[]; include?: string[]; hide?: string[]; source?: { type: "local-folder"; connectionId: string; truthPolicy?: "database_primary" | "source_primary" | "reviewed_bidirectional"; }; } export interface AgentNativeManifestApp { mode?: AgentNativeDataMode; profile?: string; roots?: AgentNativeManifestRoot[]; components?: string | string[]; extensions?: string | string[]; hide?: string[]; } export interface AgentNativeManifest { version?: number; mode?: AgentNativeDataMode; apps?: Record; } export interface LoadedAgentNativeManifest { path: string; rootDir: string; manifest: AgentNativeManifest; } export interface LocalArtifactAppDefaults { mode?: AgentNativeDataMode; profile?: string; roots: AgentNativeManifestRoot[]; hide?: string[]; components?: string | string[]; extensions?: string | string[]; } export interface LoadAgentNativeManifestOptions { cwd?: string; manifestPath?: string; optional?: boolean; } export interface ResolveAgentNativeModeOptions extends LoadAgentNativeManifestOptions { appId?: string; defaults?: Pick; } export interface LocalArtifactOptions extends LoadAgentNativeManifestOptions { appId: string; defaults?: LocalArtifactAppDefaults; } export interface LoadedLocalArtifactRoot { name: string; path: string; absolutePath: string; kind?: string; profile?: string; extensions: string[]; hide: string[]; include: string[]; source?: AgentNativeManifestRoot["source"]; } export interface LoadedLocalArtifactApp { appId: string; mode: AgentNativeDataMode; profile?: string; manifestPath: string | null; workspaceRoot: string; roots: LoadedLocalArtifactRoot[]; components: string[]; extensions: string[]; hide: string[]; } export interface LocalArtifactFileMeta { path: string; absolutePath: string; rootName: string; rootPath: string; kind?: string; profile?: string; extension: string; contentType: string; sizeBytes: number; hash: string; createdAt: string; updatedAt: string; mtimeMs: number; } export interface LocalArtifactFile extends LocalArtifactFileMeta { content: string; } export interface WriteLocalArtifactFileOptions extends LocalArtifactOptions { content: string; expectedHash?: string | null; ifNotExists?: boolean; } export interface LocalWorkspaceResourceMeta { id: string; path: string; absolutePath: string; mimeType: string; sizeBytes: number; hash: string; createdAt: string; updatedAt: string; mtimeMs: number; } export interface LocalWorkspaceResourceFile extends LocalWorkspaceResourceMeta { content: string; } export interface LocalWorkspaceResourceOptions extends LoadAgentNativeManifestOptions { } export interface WriteLocalWorkspaceResourceOptions extends LocalWorkspaceResourceOptions { path: string; content: string; expectedHash?: string | null; ifNotExists?: boolean; } export declare const LOCAL_WORKSPACE_RESOURCE_ID_PREFIX = "local-workspace-resource:"; export declare function findAgentNativeManifest(startDir?: string): string | null; export declare function loadAgentNativeManifest(options?: LoadAgentNativeManifestOptions): Promise; export declare function resolveAgentNativeDataMode(options?: ResolveAgentNativeModeOptions): Promise; export declare function isAgentNativeLocalFileMode(options?: ResolveAgentNativeModeOptions): Promise; export declare function getLocalArtifactApp(options: LocalArtifactOptions): Promise; export declare function listLocalArtifactFiles(options: LocalArtifactOptions): Promise; export declare function listConfiguredLocalArtifactFiles(options: LocalArtifactOptions): Promise; export declare function readLocalArtifactFile(options: LocalArtifactOptions & { path: string; }): Promise; export declare function readConfiguredLocalArtifactFile(options: LocalArtifactOptions & { path: string; }): Promise; export declare function writeLocalArtifactFile(options: WriteLocalArtifactFileOptions & { path: string; }): Promise; export declare function deleteLocalArtifactFile(options: LocalArtifactOptions & { path: string; }): Promise; export declare function ensureLocalArtifactRoot(options: LocalArtifactOptions): Promise; export declare function createTempWorkspaceDir(prefix?: string): string; export declare function isLocalWorkspaceResourcesEnabled(options?: LocalWorkspaceResourceOptions): Promise; export declare function localWorkspaceResourceId(resourcePath: string): string; export declare function isLocalWorkspaceResourceId(id: string): boolean; export declare function localWorkspaceResourcePathFromId(id: string): string | null; export declare function normalizeLocalWorkspaceResourcePath(resourcePath: string): string; export declare function canUseLocalWorkspaceResourcePath(resourcePath: string): boolean; export declare function listLocalWorkspaceResources(options?: LocalWorkspaceResourceOptions): Promise; export declare function readLocalWorkspaceResource(options: LocalWorkspaceResourceOptions & { path: string; }): Promise; export declare function writeLocalWorkspaceResource(options: WriteLocalWorkspaceResourceOptions): Promise; export declare function deleteLocalWorkspaceResource(options: LocalWorkspaceResourceOptions & { path: string; }): Promise; //# sourceMappingURL=index.d.ts.map