import { PostgresAccessor } from '@struktoai/mirage-core/accessor/postgres'; import type { RegisteredCommand } from '@struktoai/mirage-core/commands/config'; import type { RegisteredOp } from '@struktoai/mirage-core/ops/registry'; import { BaseResource } from '@struktoai/mirage-core/resource/base'; import type { Resource } from '@struktoai/mirage-core/resource/base'; import type { PostgresConfig, PostgresConfigRedacted, PostgresConfigResolved } from '@struktoai/mirage-core/resource/postgres/config'; import { PathSpec } from '@struktoai/mirage-core/types'; import type { FileStat } from '@struktoai/mirage-core/types'; import { PostgresStore } from './store.ts'; export interface PostgresResourceOptions { config: PostgresConfig; prefix?: string; } export interface PostgresResourceState { type: string; config: PostgresConfigRedacted; needs_override: true; } export declare class PostgresResource extends BaseResource implements Resource { readonly kind: string; readonly cachesReads: boolean; readonly indexTtl: number; readonly prompt: string; readonly config: PostgresConfigResolved; readonly store: PostgresStore; readonly accessor: PostgresAccessor; constructor(options: PostgresResourceOptions | PostgresConfig); getState(): PostgresResourceState; loadState(_state: PostgresResourceState): Promise; open(): Promise; close(): Promise; ops(): readonly RegisteredOp[]; commands(): readonly RegisteredCommand[]; readFile(p: PathSpec): Promise; readdir(p: PathSpec): Promise; stat(p: PathSpec): Promise; glob(paths: readonly PathSpec[], prefix?: string): Promise; } //# sourceMappingURL=postgres.d.ts.map