import { C15TClient } from './client'; import type { C15TClientOptions } from './types'; /** * Creates a type-safe C15T client instance * * @param options - Configuration options for the client. If not provided, * falls back to C15T_API_URL and C15T_API_TOKEN environment variables. * @returns A C15TClient instance for interacting with the C15T API * * @example * ```typescript * // Auto-configure from environment variables * const client = c15tClient(); * * // Or provide explicit options * const client = c15tClient({ * baseUrl: "https://api.example.com", * token: "your-auth-token" * }); * * // Check API status * const status = await client.meta.status(); * * // Initialize consent manager * const init = await client.meta.init(); * * // Create a subject with consent * const subject = await client.subjects.create({ * type: 'cookie_banner', * subjectId: 'sub_123', * domain: 'example.com', * preferences: { analytics: true }, * givenAt: Date.now(), * }); * ``` */ export declare function c15tClient(options?: C15TClientOptions): C15TClient; export type { CheckConsentOutput, CheckConsentQuery, ConsentCheckResult, ConsentItem, GetSubjectInput, GetSubjectOutput, GetSubjectParams, GetSubjectQuery, InitOutput, ListSubjectsOutput, ListSubjectsQuery, PatchSubjectFullInput, PatchSubjectOutput, PostSubjectInput, PostSubjectOutput, StatusOutput, SubjectItem, } from '@c15t/schema/types'; export { C15TClient } from './client'; export { C15TError, isC15TError } from './error'; export type { FetcherContext } from './fetcher'; export { createResponseContext, fetcher, resolveUrl } from './fetcher'; export type { C15TClientOptions, FetchOptions, ResponseContext, RetryConfig, } from './types';