import { URI } from '../src/model/uri'; import { FoamWorkspace } from '../src/model/workspace'; import { Resource } from '../src/model/note'; import { IDataStore } from '../src/services/datastore'; export { default as waitForExpect } from 'wait-for-expect'; /** * An in-memory data store for testing that stores file content in a Map. */ export declare class InMemoryDataStore implements IDataStore { private files; /** * Sync helper for test setup — populate without going through the async API. */ set(uri: URI, content: string): void; /** * Sync helper to clear all files. */ clear(): void; list(pattern?: string): Promise; read(uri: URI): Promise; write(uri: URI, content: string): Promise; delete(uri: URI): Promise; move(from: URI, to: URI): Promise; exists(uri: URI): Promise; } export declare const TEST_DATA_DIR: URI; export declare const strToUri: typeof URI.file; export declare const createTestWorkspace: (workspaceRoots?: URI[], dataStore?: IDataStore, directoryMode?: "resolve" | "disabled") => FoamWorkspace; export declare const createTestNote: (params: { uri: string; title?: string; links?: Array<{ slug: string; definitionUrl?: string; } | { to: string; }>; tags?: string[]; aliases?: string[]; sections?: string[]; root?: URI; type?: string; properties?: Record; }) => Resource; export declare const createNoteFromMarkdown: (uri: string, text: string, root?: URI) => Resource; export declare const wait: (ms: number) => Promise; export declare const randomString: (len?: number) => string; export declare const getRandomURI: () => URI; export declare const readFileFromFs: (uri: URI) => Promise; //# sourceMappingURL=test-utils.d.ts.map