import Database from 'better-sqlite3';
import { type ExternalExecutionMapping, type ExternalMappingProvider, type UpsertExternalExecutionMappingInput } from './types.js';
export declare class ExternalExecutionMappingStore {
    private db;
    constructor(db: Database.Database);
    private ensureTables;
    upsertMapping(input: UpsertExternalExecutionMappingInput): ExternalExecutionMapping;
    getByExternalId(provider: ExternalMappingProvider, externalId: string): ExternalExecutionMapping | null;
    getByExternalKey(provider: ExternalMappingProvider, externalKey: string): ExternalExecutionMapping | null;
    findByExecutionId(executionId: string): ExternalExecutionMapping[];
    private rowToMapping;
}
