import type { SQL } from 'drizzle-orm';
/**
 * Creates merged entity fields for SELECT when joining remote and local entities.
 * JSON fields (metadata, git, contact, links, tags) are merged using json_patch.
 * Simple fields prefer the newer value based on updated_at.
 * @param remoteAlias - Alias for remote table (default: 'r')
 * @param localAlias - Alias for local table (default: 'l')
 */
export declare function createMergedEntityFieldsForSelect(remoteAlias?: string, localAlias?: string): {
    id: SQL<unknown>;
    organizationId: SQL<unknown>;
    projectId: SQL<unknown>;
    key: SQL<unknown>;
    type: SQL<unknown>;
    title: SQL<unknown>;
    summary: SQL<unknown>;
    tags: SQL<unknown>;
    metadata: SQL<unknown>;
    git: SQL<unknown>;
    contact: SQL<unknown>;
    links: SQL<unknown>;
    createdAt: SQL<unknown>;
    updatedAt: SQL<unknown>;
    source: SQL<unknown>;
    sourceFile: SQL<unknown>;
    fileHash: SQL<unknown>;
    version: SQL<unknown>;
    revision: SQL<unknown>;
    hash: SQL<unknown>;
    isCurrent: SQL<unknown>;
    isDefaultVersion: SQL<unknown>;
    isDeleted: SQL<unknown>;
    scorecardsStatus: SQL<unknown>;
};
//# sourceMappingURL=create-merged-entity-fields-for-select.d.ts.map