import type { SearchResult } from '@mmnto/totem';
export interface AutoContextOptions {
    branchRef?: string;
    maxCharacters?: number;
    limit?: number;
    projectRoot?: string;
}
export interface AutoContextResult {
    query: string;
    resultsIncluded: number;
    totalFound: number;
    content: string;
    searchMethod: 'hybrid' | 'fts' | 'none';
    durationMs: number;
}
export interface ParsedBranch {
    ticket: string | null;
    query: string;
}
export declare function parseBranch(branchRef: string): ParsedBranch;
export declare function truncateResults(results: SearchResult[], maxCharacters: number): {
    content: string;
    included: number;
};
export declare function getAutoContext(options?: AutoContextOptions): Promise<AutoContextResult>;
//# sourceMappingURL=auto-context.d.ts.map