import type { SandboxAccessControl, SandboxAttributionRule, SandboxAwsAuthRule, SandboxGcpAuthRule, SandboxProxyConfig, SandboxProxyRule, SandboxProxySecret } from "./types.js"; /** * Validate role-only descriptors without tightening legacy static inputs. * `options` are the role fields this caller accepts besides role_arn. */ export declare function getAwsRoleArn(aws: unknown, options?: string[]): string | undefined; /** Reference a LangSmith workspace secret in a sandbox proxy configuration. */ export declare function workspaceSecret(name: string): SandboxProxySecret; /** Provide a write-only secret value for a sandbox proxy configuration. */ export declare function opaqueSecret(value: string): SandboxProxySecret; /** Build a sandbox proxy config from one or more proxy rules. */ export declare function proxyConfig({ rules, accessControl, }?: { rules?: SandboxProxyRule[]; /** @deprecated Ignored. The sandbox runtime has no proxy bypass list. */ noProxy?: string[]; accessControl?: SandboxAccessControl; }): SandboxProxyConfig; /** Build a rule disclosing literal, non-sensitive metadata to every proxy-handled destination. */ export declare function attribution({ headers, name, enabled, }: { headers: Record; name?: string; enabled?: boolean; }): SandboxAttributionRule; interface AwsAuthCommonOptions { name?: string; enabled?: boolean; envVars?: Record; } type AwsStaticAuthConfig = Extract; type AwsRoleAuthConfig = Extract; type AwsStaticAuthOptions = AwsAuthCommonOptions & { accessKeyId: SandboxProxySecret; secretAccessKey: SandboxProxySecret; roleArn?: ""; sessionTags?: never; }; type AwsRoleAuthOptions = AwsAuthCommonOptions & { roleArn: string; /** * AWS session tags for the role session, so the role's own policy can scope * access per sandbox with `${aws:PrincipalTag/}` (for example an S3 * prefix per user). The role's trust policy must allow sts:TagSession. Only * valid in proxyConfig; a mount-scoped role in mountConfig.auth cannot carry * tags. */ sessionTags?: Record; accessKeyId?: never; secretAccessKey?: never; }; /** * Sign supported AWS HTTPS requests using static keys or an IAM role. * Role auth requires backend support and is configured at sandbox creation. * LangSmith supplies the workspace External ID and renews credentials. * A role in proxyConfig uses its effective IAM permissions; the same helper * in mountConfig.auth uses the backend's mount-scoped S3 permissions. */ export declare function awsAuth(options: AwsStaticAuthOptions): SandboxAwsAuthRule; export declare function awsAuth(options: AwsRoleAuthOptions): SandboxAwsAuthRule; export declare function awsAuth(options: AwsStaticAuthOptions | AwsRoleAuthOptions): SandboxAwsAuthRule; /** Build a sandbox proxy rule that injects GCP OAuth bearer auth. */ export declare function gcpAuth({ serviceAccountJson, scopes, name, enabled, envVars, }: { serviceAccountJson: SandboxProxySecret; scopes?: string[]; name?: string; enabled?: boolean; envVars?: Record; }): SandboxGcpAuthRule; export {};