export type ClientSharedFileMentionToken = {
    query: string;
    start: number;
    end: number;
};
/**
 * Owns interface-neutral @file mention text semantics.
 *
 * UIs own rendering, keyboard behavior, and API timing. The control plane owns
 * workspace file search. This service owns only the shared local text rules
 * for detecting the active mention token and replacing it with a selected path.
 */
export declare class ClientSharedFileMentionService {
    static findToken(value: string, cursor: number): ClientSharedFileMentionToken | null;
    static insertSelection(value: string, token: ClientSharedFileMentionToken, selectedPath: string): {
        value: string;
        cursor: number;
    };
    static tokenKey(token: ClientSharedFileMentionToken): string;
}
//# sourceMappingURL=file-mention-service.d.ts.map