@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
12 lines • 625 B
TypeScript
import type { DifyAccessor } from '../../accessor/dify.ts';
import type { PathSpec, SearchQuery } from '../../types.ts';
export declare const METHODS: Record<string, string>;
export interface SearchOptions {
method?: string;
topK?: number;
threshold?: number;
mountPrefix?: string;
}
export declare function searchSegments(accessor: DifyAccessor, query: string, paths: readonly PathSpec[], options?: SearchOptions): Promise<[string, string][]>;
export declare function searchMany(accessor: DifyAccessor, paths: PathSpec[], query: SearchQuery): Promise<[string, string][]>;
//# sourceMappingURL=search.d.ts.map