/**
 * Linear Configuration Storage
 *
 * Stores Linear credentials and preferences in the workspace_settings table.
 */
import Database from 'better-sqlite3';
import type { LinearConfig } from './types.js';
/**
 * Check if Linear is configured (API key is stored).
 */
export declare function isLinearConfigured(db: Database.Database): boolean;
/**
 * Load Linear configuration from the database.
 * Returns null if not configured.
 */
export declare function loadLinearConfig(db: Database.Database): LinearConfig | null;
/**
 * Save Linear API key to the database.
 */
export declare function saveLinearApiKey(db: Database.Database, apiKey: string): void;
/**
 * Save the default team for Linear operations.
 */
export declare function saveLinearDefaultTeam(db: Database.Database, teamId: string, teamKey: string): void;
/**
 * Save the organization name.
 */
export declare function saveLinearOrganization(db: Database.Database, name: string): void;
/**
 * Clear all Linear configuration from the database.
 */
export declare function clearLinearConfig(db: Database.Database): void;
/**
 * Get the stored Linear API key.
 * Also checks PRLT_LINEAR_API_KEY and LINEAR_API_KEY environment variables.
 */
export declare function getLinearApiKey(db: Database.Database): string | null;
