/**
 * Module: utils/taskdoc-search
 *
 * rtws (runtime workspace) search utilities for Taskdocs (`*.tsk/`).
 *
 * Taskdocs are encapsulated directories ending in `.tsk`. For search, we treat each `*.tsk/`
 * directory as a single unit and do not recurse into it.
 *
 * Ignore rules:
 * - Default ignore patterns skip common non-task directories (at any depth).
 * - A `.taskdoc-ignore` file may exist in any directory. Its patterns apply to that directory's
 *   subtree only (like a simplified `.gitignore`).
 * - Patterns are interpreted as paths relative to the `.taskdoc-ignore` directory (unless they
 *   start with `/`, in which case they are rtws-root-relative).
 */
import type { TaskDocumentSuggestion, TaskDocumentSummary } from '@longrun-ai/kernel/types/taskdoc';
export type ListTaskDocumentsResult = {
    kind: 'ok';
    taskDocuments: TaskDocumentSummary[];
} | {
    kind: 'error';
    errorText: string;
};
export type SearchTaskDocumentSuggestionsResult = {
    kind: 'ok';
    suggestions: TaskDocumentSuggestion[];
} | {
    kind: 'error';
    errorText: string;
};
interface ListTaskDocumentsParams {
    rootDir?: string;
}
interface SearchTaskDocumentSuggestionsParams extends ListTaskDocumentsParams {
    query: string;
    limit?: number;
}
export declare function listTaskDocumentsInRtws(params?: ListTaskDocumentsParams): Promise<ListTaskDocumentsResult>;
export declare function searchTaskDocumentSuggestionsInRtws(params: SearchTaskDocumentSuggestionsParams): Promise<SearchTaskDocumentSuggestionsResult>;
export {};
