export declare const UPSERT_TOKEN = "\n  INSERT INTO lt_oauth_tokens\n    (user_id, provider, label, access_token_enc, refresh_token_enc, token_type, scopes,\n     expires_at, provider_user_id, provider_email, metadata)\n  VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)\n  ON CONFLICT (user_id, provider, label) DO UPDATE SET\n    access_token_enc = EXCLUDED.access_token_enc,\n    refresh_token_enc = COALESCE(EXCLUDED.refresh_token_enc, lt_oauth_tokens.refresh_token_enc),\n    token_type = EXCLUDED.token_type,\n    scopes = EXCLUDED.scopes,\n    expires_at = EXCLUDED.expires_at,\n    provider_user_id = EXCLUDED.provider_user_id,\n    provider_email = COALESCE(EXCLUDED.provider_email, lt_oauth_tokens.provider_email),\n    metadata = COALESCE(EXCLUDED.metadata, lt_oauth_tokens.metadata)\n  RETURNING id";
export declare const GET_TOKEN = "\n  SELECT * FROM lt_oauth_tokens WHERE user_id = $1 AND provider = $2 AND label = $3";
export declare const GET_TOKEN_DEFAULT = "\n  SELECT * FROM lt_oauth_tokens WHERE user_id = $1 AND provider = $2 AND label = 'default'";
export declare const LIST_CONNECTIONS = "\n  SELECT provider, label, provider_email, scopes, expires_at, metadata\n  FROM lt_oauth_tokens WHERE user_id = $1 ORDER BY provider, label";
export declare const DELETE_TOKEN = "\n  DELETE FROM lt_oauth_tokens WHERE user_id = $1 AND provider = $2 AND label = $3";
export declare const DELETE_TOKEN_DEFAULT = "\n  DELETE FROM lt_oauth_tokens WHERE user_id = $1 AND provider = $2 AND label = 'default'";
export declare const GET_USER_BY_OAUTH = "\n  SELECT * FROM lt_users WHERE oauth_provider = $1 AND oauth_provider_id = $2";
