/**
 * Controls how key-value data (headers, cookies, query params) is collected and filtered.
 *
 * - `true`: Collect all data without filtering (empty denylist). Sensitive values like keys and tokens are always filtered out.
 * - `false`: Do not collect any data.
 * - `{ allow: string[] }`: Collect only the specified keys.
 * - `{ deny: string[] }`: Collect all keys except the specified ones.
 */
export type CollectBehavior = boolean | {
    allow: string[];
} | {
    deny: string[];
};
export type HttpBodyCollectionTarget = 'incomingRequest' | 'outgoingRequest' | 'incomingResponse' | 'outgoingResponse';
/**
 * Controls HTTP header collection per direction.
 */
export interface HttpHeadersCollection {
    request?: CollectBehavior;
    response?: CollectBehavior;
}
/**
 * Controls what data the SDK collects and sends to Sentry.
 *
 * All fields are optional. Omitted fields use the documented defaults.
 */
export interface DataCollection {
    /**
     * Automatically populate `user.*` fields from instrumentation sources.
     * @default false
     */
    userInfo?: boolean;
    /**
     * Controls cookie collection and sensitive value filtering.
     * @default true
     */
    cookies?: CollectBehavior;
    /**
     * Controls HTTP header collection for requests and responses.
     *
     * Accepts a `CollectBehavior` applied to both directions, or `{ request, response }` to control each independently.
     * @default { request: true, response: true }
     */
    httpHeaders?: CollectBehavior | HttpHeadersCollection;
    /**
     * Which HTTP body types to collect. An omitted value collects all body types valid for the
     * platform; an empty array (`[]`) disables body collection.
     * @default ['incomingRequest', 'outgoingRequest', 'incomingResponse', 'outgoingResponse']
     */
    httpBodies?: HttpBodyCollectionTarget[];
    /** @deprecated Use `urlQueryParams` instead. */
    queryParams?: CollectBehavior;
    /**
     * Controls URL query parameter collection and sensitive value filtering.
     * @default true
     */
    urlQueryParams?: CollectBehavior;
    /**
     * Allow collection of GraphQL operation data when using the SDK's GraphQL integrations
     *
     * These options do not add GraphQL instrumentation on their own. The corresponding integration must still be enabled
     * for any data to be captured.
     *
     * - `document`: attach the GraphQL document (query/mutation source text).
     * - `variables`: attach the variables passed to GraphQL operations.
     * @default { document: true, variables: true }
     */
    graphQL?: {
        document?: boolean;
        variables?: boolean;
    };
    /**
     * Allow generative AI input/output recording when using the SDK's AI integrations.
     *
     * These options do not add AI instrumentation on their own. The corresponding integration must still be enabled for
     * any data to be captured. Integration-level options, when set, take precedence over these
     * values.
     * @default { inputs: true, outputs: true }
     */
    genAI?: {
        inputs?: boolean;
        outputs?: boolean;
    };
    /**
     * Include data associated with database queries. This controls collection of query parameters, inline literal values within query text, mutation/request bodies, and returned result data.
     *
     * Sanitized or parameterized DB statements (`db.query.text`) are **not** controlled by this property. Structural metadata such as the database system, query summary, operation name, or the table being acted upon is also **always** collected.
     * @default true
     */
    databaseQueryData?: boolean;
    /**
     * Capture local variable values in stack frames.
     *
     * Accepts a Boolean (`true` collects all variables, `false` collects none) or a `CollectBehavior` to filter which
     * variables are sent by name (`{ allow: [...] }` / `{ deny: [...] }`), matching against variable names.
     *
     * Note: filtering by name requires knowing the variable names **as they appear after bundling**. Minifiers and other
     * build-time transforms frequently rename local variables (e.g. `password` becomes `a`), so allow/deny terms
     * configured against source names may not match the names captured at runtime.
     * @default true
     */
    stackFrameVariables?: boolean | CollectBehavior;
    /**
     * Number of source code context lines to capture around stack frames.
     * @default 5
     */
    frameContextLines?: number;
}
/**
 * Fully resolved `DataCollection` with all defaults applied.
 */
export type ResolvedDataCollection = Required<Omit<DataCollection, 'queryParams' | 'httpHeaders'>> & {
    httpHeaders: Required<HttpHeadersCollection>;
    graphQL: Required<NonNullable<DataCollection['graphQL']>>;
    genAI: Required<NonNullable<DataCollection['genAI']>>;
};
//# sourceMappingURL=datacollection.d.ts.map