interface BaseConnection { /** The unique identifier for the connection. */ id: string; /** The access token or secret for the connection. */ value: string; /** A key that uniquely identifies this kind of connection within the app installation. */ connection_key: string; createdBy: { type: "user"; /** User ID */ id: string; }; } export interface UserConnection extends BaseConnection { ownedBy: { type: "user"; /** User ID */ id: string; }; } export interface WorkspaceConnection extends BaseConnection { ownedBy: { type: "workspace"; /** Workspace ID */ id: string; }; } export type Connection = UserConnection | WorkspaceConnection; export declare function getUserConnection(connectionKey?: string): UserConnection; export declare function getWorkspaceConnection(connectionKey?: string): WorkspaceConnection; export {}; //# sourceMappingURL=connections.d.ts.map