/// /** * The properties required for creating an * S3 document descriptor. */ export interface S3DocumentDescriptorProps { bucket: string; key: string; } /** * A builder for the `S3DocumentDescriptor` service. */ declare class S3DocumentDescriptorBuilder { private props; /** * @param bucket the S3 bucket name. * @returns a new builder for the `S3DocumentDescriptor` * service. */ withBucket(bucket: string): this; /** * @param key the S3 object key. * @returns a new builder for the `S3DocumentDescriptor` * service. */ withKey(key: string): this; /** * @returns a new instance of the `S3DocumentDescriptor` * service constructed with the given parameters. */ build(): S3DocumentDescriptor; } /** * Describes a document located on S3. */ export declare class S3DocumentDescriptor { private props; /** * The builder for the `S3DocumentDescriptor` service. */ static Builder: typeof S3DocumentDescriptorBuilder; /** * @param props the object attributes. */ constructor(props: S3DocumentDescriptorProps); /** * @returns an S3 object descriptor given an S3 URI. * @param uri the S3 URI to parse. */ static fromUri(uri: string | URL): S3DocumentDescriptor; /** * @returns a URI describing this S3 object. */ asUri(): URL; /** * @returns the bucket name. */ bucket(): string; /** * @returns the object key. */ key(): string; } export {};