import { z } from "zod"; import { BasicAuthProperty } from "./basic-auth-prop"; import { CustomAuthProperty, CustomAuthProps } from "./custom-auth-prop"; import { SecretTextProperty } from "./secret-text-property"; import { PropertyType } from "../input/property-type"; import { OAuth2Property, OAuth2Props } from "./oauth2-prop"; import { AppConnectionType } from "@activepieces/shared"; export declare const PieceAuthProperty: z.ZodUnion; required: z.ZodBoolean; defaultValue: z.ZodOptional; username: z.ZodObject<{ displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>; password: z.ZodObject<{ displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; props: z.ZodRecord; required: z.ZodBoolean; defaultValue: z.ZodOptional; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; options: z.ZodObject<{ disabled: z.ZodOptional; placeholder: z.ZodOptional; options: z.ZodArray>; }, z.core.$strip>; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>]>>; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; props: z.ZodOptional; required: z.ZodBoolean; defaultValue: z.ZodOptional; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; options: z.ZodObject<{ disabled: z.ZodOptional; placeholder: z.ZodOptional; options: z.ZodArray>; }, z.core.$strip>; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>]>>>; authUrl: z.ZodString; tokenUrl: z.ZodString; scope: z.ZodArray; prompt: z.ZodOptional, z.ZodLiteral<"consent">, z.ZodLiteral<"login">, z.ZodLiteral<"omit">]>>; pkce: z.ZodOptional; pkceMethod: z.ZodOptional, z.ZodLiteral<"S256">]>>; authorizationMethod: z.ZodOptional>; grantType: z.ZodOptional, z.ZodLiteral<"both_client_credentials_and_authorization_code">]>>; extra: z.ZodOptional>; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; required: z.ZodBoolean; defaultValue: z.ZodOptional; displayName: z.ZodString; description: z.ZodOptional; }, z.core.$strip>]>; export type PieceAuthProperty = BasicAuthProperty | CustomAuthProperty | OAuth2Property | SecretTextProperty; type AuthProperties = Omit, 'displayName'> & { displayName?: string; }; type Properties = Omit; export declare const DEFAULT_CONNECTION_DISPLAY_NAME = "Connection"; export declare const PieceAuth: { SecretText(request: Properties>): R extends true ? SecretTextProperty : SecretTextProperty; OAuth2(request: AuthProperties>): OAuth2Property; BasicAuth(request: AuthProperties): BasicAuthProperty; CustomAuth(request: AuthProperties>): CustomAuthProperty; None(): undefined; }; export type ExtractPieceAuthPropertyTypeForMethods = T extends PieceAuthProperty[] ? T[number] : T extends undefined ? undefined : T; export declare function getAuthPropertyForValue({ authValueType, pieceAuth }: GetAuthPropertyForValue): PieceAuthProperty | undefined; type GetAuthPropertyForValue = { authValueType: AppConnectionType; pieceAuth: PieceAuthProperty | PieceAuthProperty[] | undefined; }; export {}; //# sourceMappingURL=index.d.ts.map