import { B as BlindpayApiResponse } from '../../index.d-Gvol1faW.js';
import { I as InternalApiClient } from '../../api-client-Bklw4zQi.js';

type ListApiKeysResponse = Array<{
    id: string;
    name: string;
    permission: "full_access";
    token: string;
    ip_whitelist?: string[];
    unkey_id: string;
    last_used_at: string | null;
    instance_id: string;
    created_at: string;
    updated_at: string;
}>;
type CreateApiKeyInput = {
    name: string;
    permission: "full_access";
    ip_whitelist?: string[];
};
type CreateApiKeyResponse = {
    id: string;
    token: string;
};
type GetApiKeyInput = string;
type GetApiKeyResponse = {
    id: string;
    name: string;
    permission: "full_access";
    token: string;
    ip_whitelist?: string[];
    unkey_id: string;
    last_used_at: string | null;
    instance_id: string;
    created_at: string;
    updated_at: string;
};
type DeleteApiKeyInput = string;
declare function createApiKeysResource(instanceId: string, client: InternalApiClient): {
    list(): Promise<BlindpayApiResponse<ListApiKeysResponse>>;
    create({ ...data }: CreateApiKeyInput): Promise<BlindpayApiResponse<CreateApiKeyResponse>>;
    get(id: GetApiKeyInput): Promise<BlindpayApiResponse<GetApiKeyResponse>>;
    delete(id: DeleteApiKeyInput): Promise<BlindpayApiResponse<void>>;
};

export { type CreateApiKeyInput, type CreateApiKeyResponse, type DeleteApiKeyInput, type GetApiKeyInput, type GetApiKeyResponse, type ListApiKeysResponse, createApiKeysResource };
